<%@ page import="com.oriental.reserve.enums.AdjustmentStatus" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<%--
  User: Yangxp
  Date: 2016/5/19
  Time: 9:31
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/views/reserve/report/reserveAdjustment110Detail.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">

<core:import url="../../common/pageHead.jsp">
    <core:param name="title" value="查询备付金T110调整信息"/>
</core:import>

<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/reserve/report/adjustment110/search" class="form-inline"
          autocomplete="off">
        <table table-detail>
            <tr>
                <td class="text-right">
                    账号：
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.account" class="{{vm.constant.inputClass}}"
                           typeahead-min-length="0"   uib-typeahead="item.accountNo as item.bankCode for item in vm.cached.RESERVE_LIST | filter:$viewValue | limitTo:10"/>

                </td>
                <td class="text-right">
                    报表日期：
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.tradeDate" uib-datepicker-popup="yyyy-MM-dd" required
                           class="{{vm.constant.inputClass}}"/>
                </td>
            </tr>
            <tr>
                <td colspan="8" class="textCenter">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                </td>
            </tr>
        </table>
    </form>

    <div>
        <p class="btn-group">
            <shiro:hasPermission name="reserve-adjustment110_add">
            <button ng-click="vm.addItem()"><i class="glyphicon glyphicon-plus"></i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment110_update">
            <button ng-click="vm.updateItem()"><i class="glyphicon glyphicon-pencil"></i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment110_delete">
            <button ng-click="vm.deleteItem()"><i class="glyphicon glyphicon-minus"></i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment110_pass">
                <button ng-click="vm.reviewPass()"><i>审核通过</i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment110_reject">
                <button ng-click="vm.reviewReject()"><i>审核拒绝</i></button>
            </shiro:hasPermission>
            <shiro:hasPermission name="reserve-adjustment110_back">
                <button ng-click="vm.reviewBack()"><i>审核回退</i></button>
            </shiro:hasPermission>
        </p>
    </div>

    <div style="overflow:auto">
        <div style="width: 2300px;text-align: center;">
            <table table-detail>
                <thead>
                <tr>
                    <td rowspan="3"></td>
                    <td width="190px" rowspan="3">账号</td>
                    <td width="80px" rowspan="3">交易日期</td>
                    <td width="80px" rowspan="3">调整状态</td>
                    <td colspan="6">支付机构业务系统已增加客户资金账户余额，备付金银行未增加备付金银行账户余额</td>
                    <td colspan="6">支付机构业务系统已减少客户资金账户余额，备付金银行未减少备付金银行账户余额</td>
                    <td colspan="6">备付金银行已增加备付金银行账户余额，支付机构业务系统未增加客户资金账户余额</td>
                    <td colspan="6">备付金银行已减少备付金银行账户余额，支付机构业务系统未减少客户资金账户余额</td>
                    <td width="80px" rowspan="3">经办人</td>
                    <td width="80px" rowspan="3">经办时间</td>
                    <td width="80px" rowspan="3">审核人</td>
                    <td width="80px" rowspan="3">审核时间</td>
                    <td rowspan="3">备注</td>
                </tr>
                <tr>
                    <td colspan="2">&lt;=5日</td>
                    <td colspan="2">6-10日</td>
                    <td colspan="2">&gt;=11日</td>
                    <td colspan="2">&lt;=5日</td>
                    <td colspan="2">6-10日</td>
                    <td colspan="2">&gt;=11日</td>
                    <td colspan="2">&lt;=5日</td>
                    <td colspan="2">6-10日</td>
                    <td colspan="2">&gt;=11日</td>
                    <td colspan="2">&lt;=5日</td>
                    <td colspan="2">6-10日</td>
                    <td colspan="2">&gt;=11日</td>
                </tr>
                <tr>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                    <td>笔数</td>
                    <td>金额</td>
                </tr>
                </thead>
                <tr ng-repeat="bean in vm.pagination.list track by $index">
                    <td><input name="check" type="checkbox" ng-model="bean._checked"></td>
                    <td>{{bean.account}}</td>
                    <td>{{bean.tradeDate|date:'yyyy-MM-dd'}}</td>
                    <td>{{{
                        <%for (AdjustmentStatus e : AdjustmentStatus.values()) {%>
                        '<%=e.getCode()%>':'<%=e.getDesc()%>',
                        <%}%>
                        }[bean.adjustmentStatus]}}</td>
                    <td>{{bean.k01}}</td>
                    <td>{{bean.k02}}</td>
                    <td>{{bean.k03}}</td>
                    <td>{{bean.k04}}</td>
                    <td>{{bean.k05}}</td>
                    <td>{{bean.k06}}</td>
                    <td>{{bean.k07}}</td>
                    <td>{{bean.k08}}</td>
                    <td>{{bean.k09}}</td>
                    <td>{{bean.k10}}</td>
                    <td>{{bean.k11}}</td>
                    <td>{{bean.k12}}</td>
                    <td>{{bean.k13}}</td>
                    <td>{{bean.k14}}</td>
                    <td>{{bean.k15}}</td>
                    <td>{{bean.k16}}</td>
                    <td>{{bean.k17}}</td>
                    <td>{{bean.k18}}</td>
                    <td>{{bean.k19}}</td>
                    <td>{{bean.k20}}</td>
                    <td>{{bean.k21}}</td>
                    <td>{{bean.k22}}</td>
                    <td>{{bean.k23}}</td>
                    <td>{{bean.k24}}</td>
                    <td>{{bean.handledBy}}</td>
                    <td>{{bean.handledAt|date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td>{{bean.reviewBy}}</td>
                    <td>{{bean.reviewAt|date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td>{{bean.remarkDesc}}</td>
                </tr>

            </table>
        </div>
    </div>

    <core:import url="../../common/pageFoot.jsp"/>
</div>
<core:import url="../../common/nav.jsp"/>
</body>
</html>
